package com.yuefresh.dish;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.yuefresh.core.Model;


@Entity
@Table(name = "ds_dish")
public class Dish  extends Model {
	private static final long serialVersionUID = 1534214124234L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID")
	private Long id;
	@Column(name = "NAME")
	private String name;
	@Column(name = "DESCRIPTION")
	private String description;
	@Column(name = "PRICE")
	private Double price;
	@Column(name = "PRICE_UNIT")
	private String priceUnit;
	@Column(name = "DISCOUNT")
	private Double discount;
	@Column(name = "DELICIOUS_GRADE")
	private Integer deliciousGrade;
	@Column(name = "PUNGENT_GRADE")
	private Integer pungentGrade;
	@Column(name = "IS_SPECIAL")
	private Boolean isSpecial;
	@Column(name = "SALES_QTY")
	private Double salesQty;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RESTAURANT_FK")
	private Restaurant restaurant;
	@Column(name = "RECIPE_SUMMARY")
	private String recipeSummary;
	@Column(name = "CHEF_WORD")
	private String chefWord;
	@Column(name = "IMG_PATH")
	private String imgPath;
	@Column(name = "IMG_SIZE")
	private String imgSize;//用于瀑布流程呈现的图片
	
	public Dish() {}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}

	public String getPriceUnit() {
		return priceUnit;
	}
	public void setPriceUnit(String priceUnit) {
		this.priceUnit = priceUnit;
	}

	public Double getDiscount() {
		return discount;
	}
	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Integer getDeliciousGrade() {
		return deliciousGrade;
	}
	public void setDeliciousGrade(Integer deliciousGrade) {
		this.deliciousGrade = deliciousGrade;
	}

	public Integer getPungentGrade() {
		return pungentGrade;
	}
	public void setPungentGrade(Integer pungentGrade) {
		this.pungentGrade = pungentGrade;
	}

	public Boolean getIsSpecial() {
		return isSpecial;
	}
	public void setIsSpecial(Boolean isSpecial) {
		this.isSpecial = isSpecial;
	}

	public Double getSalesQty() {
		return salesQty;
	}
	public void setSalesQty(Double salesQty) {
		this.salesQty = salesQty;
	}

	public Restaurant getRestaurant() {
		return restaurant;
	}
	public void setRestaurant(Restaurant restaurant) {
		this.restaurant = restaurant;
	}

	public String getRecipeSummary() {
		return recipeSummary;
	}
	public void setRecipeSummary(String recipeSummary) {
		this.recipeSummary = recipeSummary;
	}

	public String getChefWord() {
		return chefWord;
	}
	public void setChefWord(String chefWord) {
		this.chefWord = chefWord;
	}

	public String getImgPath() {
		return imgPath;
	}
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public String getImgSize() {
		return imgSize;
	}
	public void setImgSize(String imgSize) {
		this.imgSize = imgSize;
	}
}
